import request from "../utils/http";

// 获取档口列表
export function getStsloglist(params) {
  return request({
    url: "/stalls",
    method: "get",
    params,
  });
}

// 创建档口
export function createStslog(data) {
  return request({
    url: "/stalls/add",
    method: "post",
    data,
  });
}

// 编辑档口
export function updateStslog(id, data) {
  return request({
    url: `/stalls/${id}`,
    method: "put",
    data,
  });
}

// 查看档口
export function getStslog(id) {
  return request({
    url: `/stalls/${id}`,
    method: "get",
  });
}